Skip to content

Remove CSS bootstrap dependency #15251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2025
Merged

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Jul 11, 2025

Follow-up of #15208.

This PR removes the CSS bootstrap dependency which contains 1504 CSS rules and weights 16.1 kB minified. Considering we used less than 50 of these rules, it's quite a waste.

So this time, there are minor UI changes:

  • The "expand/collapse all" buttons icon changed. It now uses the one from font-awesome. It's quite close but not exactly the same.
  • The layout is slightly different (you need to switch between two tabs to actually see the difference).

Before this PR:

image

With this PR:

image

With this, we will be able to go even further on reducing the page size next. =D

This time, the DOM size itself reduced a bit but the difference is too small to be noteworthy.

r? @samueltardieu

changelog: Remove CSS bootstrap dependency

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 11, 2025
@samueltardieu
Copy link
Member

Since this is user-facing, I'll let @flip1995 weight in here.
r? @flip1995

@rustbot rustbot assigned flip1995 and unassigned samueltardieu Jul 11, 2025
Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But still want to test this, if I can spot any differences.

@GuillaumeGomez
Copy link
Member Author

@flip1995 Did you have time to check it? :)

@flip1995
Copy link
Member

flip1995 commented Aug 6, 2025

Yes, here are my notes:

All themes

  1. Links are not stylized and hardly visible in dark themes. And kinda ugly compared to the previous state

New

image

Old

image
  1. Line spacing is a bit bigger in the new version. Not necessarily bad, and probably just a taste thing.

Ayu

Contrast of top bar elements is bad. Also the symbols for collapse/expand all.

New

image

Old

image

@GuillaumeGomez
Copy link
Member Author

Seems like I forgot some cases, fixing that right away.

@GuillaumeGomez
Copy link
Member Author

Fixed!

@flip1995
Copy link
Member

flip1995 commented Aug 6, 2025

Thanks for the quick fix!

@flip1995 flip1995 added this pull request to the merge queue Aug 6, 2025
Merged via the queue into rust-lang:master with commit 925710d Aug 6, 2025
8 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Aug 6, 2025
@GuillaumeGomez GuillaumeGomez deleted the rm-bootstrap branch August 6, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants